/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-22 17:52:37
 * @LastEditors: Wang Shuo wangshuo@sgsimulation.com
 * @LastEditTime: 2024-08-30 13:43:44
 * @FilePath: \SGFEM\DataStructure\FEM\Property\src\PELASData.cpp
 */

#include "DataStructure/Input/Property/PELASData.h"

#include "DataStructure/Common/Validation.h"

bool SG::DataStructure::FEM::operator== (const PELASData &a, const PELASData &b)
{
    if (a.m_id != b.m_id)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_K, b.m_K))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_D, b.m_D))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_S, b.m_S))
    {
        return false;
    }
    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    return true;
}
